<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />  
    <title>账号分组</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta name="author" content="飞啊飘啊">
	<meta name="hashcode" content="1778115946">
	
	<script>window.duteTag="lz";</script>
	<script type="text/javascript" src="/manage/js/dute-1.0.js"></script>
	<script type="text/javascript" src="/manage/js/jquery-1.7.1.min.js"></script>

	<script type="text/javascript" src="/manage/js/lazy3q.ui.js"></script>
	<script>
		document.write('<link rel="stylesheet" type="text/css" href="/manage//css/'+($.cookie('theme')||'elegant')+'/lazy3q.ui.css" /> ');
	</script>
	
	<!-- 用户自定义js(懒加载) -->
	<script type="text/javascript" src="/manage/js/define.js"></script>
	<!-- 用户自定义css样式 -->
	<link rel="stylesheet" type="text/css" href="/manage/css/define.css"/>
	
	
	
	<script type="text/javascript">
		window.basePath="/";
		window.hashcode = "1778115946";
	</script>
		
	<!-- 感谢kindeditor出品的在线HTML编辑控件 -->
	<script type="text/javascript" charset="utf-8" src="/manage/js/kindeditor/kindeditor.js"></script>
		
	<!-- 感谢My97DatePicker出品的时间控件 -->
	<script language="javascript" type="text/javascript" src="/manage/js/My97DatePicker/WdatePicker.js"></script>
	
	<!------------------------VIEW_HTML_HEAD------------------------>
	<!------------------------VIEW_HTML_HEAD------------------------>	
	
</head>
<script>
Page({
  data:{
    
  },
  onLoad: function(options) {
  	var THIS = this;
  	THIS.setData(options);
  	$.getAjax("managerole.get.do",options,function(protocol){
  		if(protocol.message){
  			$.toast(protocol.message);
  		}
  		THIS.setData(protocol.data);
  		/******************VIEW_HTML_SET_DATA******************/
  		/******************VIEW_HTML_SET_DATA******************/
  	});
  }
});
</script>
<script>
window["lzFlashUrl"]=top.lzFlashUrl||"/admin/flash/";
window["uploadUrl"]=top.uploadUrl||"/admin/upload.do";

$(function(){
		 
	$("#manageroleForm").form({
		"":function(){}
		,"manageRole.id":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
			}
		}
		,"manageRole.name":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "组名称不能为空";
			}
			if(el.value.length>32 && el.value.indexOf("[*]")==-1)
				return "组名称最大长度为32个字符";
		}
		,"manageRole.remarks":function(el){
			if(el.value.length>256 && el.value.indexOf("[*]")==-1)
				return "备注说明最大长度为256个字符";
		}
		,"manageRole.updateTime":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "修改时间不能为空";
			}
		}
		,"manageRole.addTime":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "添加时间不能为空";
			}
		}
		,"manageRole.status":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "请选择状态";
			}
		}
		,"manageRole.merchant":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
			}
		}
		,"manageRole.limits":function(el){
		}
	},function(){
		/******************************LAZY3Q_FORM_VALIDATE******************************/
		/******************************LAZY3Q_FORM_VALIDATE******************************/
	});		
});
</script>

<body style="display:none;">



<!------------------------VIEW_HTML_TOP------------------------>
<!------------------------VIEW_HTML_TOP------------------------>



<form lz:if="{{edittype=='insert'||edittype=='update'||edittype=='detail'||edittype=='any'}}" class="form editform edittype_{{edittype}}" ref="ManageRole" id="manageroleForm" name="manageroleForm" target="jsoniframe" action="managerole.{{edittype=='any'?'update':edittype}}.do" method="post">
	<div class="head"></div>
	<div class="body">
		<div class="content">
			<div lz:if="{{edittype!='detail'}}" class="prompt">
				温馨提示：请仔细填写账号分组相关信息，<span class="extrude">"*" 为必填选项。</span>
			</div>
			<br/>
			<lz:block lz:if="{{message}}">
			<br/>
			<center>
				<font color="red"><h4>{{message}}</h4></font>
			</center>
			<br/>
			</lz:block>
			<input type="hidden" value="{{complete}}" name="complete" id="complete" />
			<input type="hidden" value="{{ids}}" name="ids" id="ids" />
			<textarea name="PARAMS" id="PARAMS" style="display:none">{{PARAMS}}</textarea>
	{{lz.set("id_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"id"))))}}
	{{lz.set("id_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$id}}
	<dl lz:if="{{id_editable||id_readonly}}" class="id hidden " major  ref="id">
		<dt>编　　号:</dt>
		<dd lz:if="{{id_editable}}" input="hidden">
			<lz:block lz:if="{{manageRole$id}}">
				{{manageRole$id}}
			</lz:block>
			<lz:block lz:if="{{!manageRole$id}}">
			<input type="hidden" value="{{lz.htm(manageRole.id)}}" name="manageRole.id" id="id" />
	 	 </lz:block>
	 	 
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{id_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="id">{{manageRole.id}}</textarea>
		 		<span>
		 	
			 {{lz.html(manageRole.id$||manageRole.id)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$id}}
	{{lz.set("name_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"name"))))}}
	{{lz.set("name_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$name}}
	<dl lz:if="{{name_editable||name_readonly}}" class="name  " major  ref="name">
		<dt>组 名 称:</dt>
		<dd lz:if="{{name_editable}}" input="text">
			<lz:block lz:if="{{manageRole$name}}">
				{{manageRole$name}}
			</lz:block>
			<lz:block lz:if="{{!manageRole$name}}">
		 	<input type="text" class="input narrow"   name="manageRole.name" id="name"  value="{{lz.htm(manageRole.name)}}"/>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请输入账号分组的组名称</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{name_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="name">{{manageRole.name}}</textarea>
		 		<span>
		 	
			 {{lz.html(manageRole.name$||manageRole.name)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$name}}
	{{lz.set("remarks_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"remarks"))))}}
	{{lz.set("remarks_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$remarks}}
	<dl lz:if="{{remarks_editable||remarks_readonly}}" class="ribs remarks   wider" major  ref="remarks">
		<dt>备注说明:</dt>
		<dd lz:if="{{remarks_editable}}" input="textarea">
			<lz:block lz:if="{{manageRole$remarks}}">
				{{manageRole$remarks}}
			</lz:block>
			<lz:block lz:if="{{!manageRole$remarks}}">
		 	<textarea class="input wide"  id="remarks" name="manageRole.remarks" rows="5">{{manageRole.remarks}}</textarea>
	 	 </lz:block>
	 	 
	 	 <em>请输入账号分组的备注说明</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{remarks_readonly}}">
		 	<div class="state-input wide">
		 		<span>
		 	
			 {{lz.html(manageRole.remarks$||manageRole.remarks)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$remarks}}
	{{lz.set("updateTime_editable",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='any'&&(lz.idin(fields,"updateTime"))))}}
	{{lz.set("updateTime_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$updateTime}}
	<dl lz:if="{{updateTime_editable||updateTime_readonly}}" class="updateTime  " major  ref="updateTime">
		<dt>修改时间:</dt>
		<dd lz:if="{{updateTime_editable}}" input="datetime">
			<lz:block lz:if="{{manageRole$updateTime}}">
				{{manageRole$updateTime}}
			</lz:block>
			<lz:block lz:if="{{!manageRole$updateTime}}">
		 	<input onchange="void(0);" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" type="text" class="datetime input narrow" maxlength="19" name="manageRole.updateTime" id="updateTime"  value="{{manageRole.updateTime$}}"/>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请选择账号分组的修改时间</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{updateTime_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="updateTime">{{manageRole.updateTime}}</textarea>
		 		<span>
		 	
			 {{lz.html(manageRole.updateTime$||manageRole.updateTime)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$updateTime}}
	{{lz.set("addTime_editable",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='any'&&(lz.idin(fields,"addTime"))))}}
	{{lz.set("addTime_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$addTime}}
	<dl lz:if="{{addTime_editable||addTime_readonly}}" class="addTime  " major  ref="addTime">
		<dt>添加时间:</dt>
		<dd lz:if="{{addTime_editable}}" input="datetime">
			<lz:block lz:if="{{manageRole$addTime}}">
				{{manageRole$addTime}}
			</lz:block>
			<lz:block lz:if="{{!manageRole$addTime}}">
		 	<input onchange="void(0);" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" type="text" class="datetime input narrow" maxlength="19" name="manageRole.addTime" id="addTime"  value="{{manageRole.addTime$}}"/>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请选择账号分组的添加时间</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{addTime_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="addTime">{{manageRole.addTime}}</textarea>
		 		<span>
		 	
			 {{lz.html(manageRole.addTime$||manageRole.addTime)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$addTime}}
	{{lz.set("status_editable",(edittype=='insert'&&false)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"status"))))}}
	{{lz.set("status_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$status}}
	<dl lz:if="{{status_editable||status_readonly}}" class="status  " major  ref="status">
		<dt>状　　态:</dt>
		<dd lz:if="{{status_editable}}" input="select">
			<lz:block lz:if="{{manageRole$status}}">
				{{manageRole$status}}
			</lz:block>
			<lz:block lz:if="{{!manageRole$status}}">
		 	<select class="narrow" id="status" name="manageRole.status">
		 		<option value="">请选择</option>
				<option value="1" selected='{{manageRole.status=="1"?"selected":""}}'>正常</option>
				<option value="0" selected='{{manageRole.status=="0"?"selected":""}}'>无效</option>
		 	</select>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请选择账号分组的状态</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{status_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="status">{{manageRole.status}}</textarea>
		 		<span>
		 	
			 {{lz.html(manageRole.status$||manageRole.status)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$status}}
			
			
			<div class="line">
				<center lz:if="{{edittype=='insert'}}">
					<a onclick="$('.ribs').show();window.fireResize();$('.ribs-handle').toggle();" href="javascript:void(0);" class="state-content ribs-handle" style="display:inline;padding: 0px 15px;">点击展开更多编辑项</a>
					<a onclick="$('.ribs').hide();window.fireResize();$('.ribs-handle').toggle();" href="javascript:void(0);" class="state-content ribs-handle" style="display:none;padding: 0px 15px;">点击收起更多编辑项</a>
				</center>
			</div>
			<center class="buttons">
				<input type="hidden" value="{{manageRole.id}}" name="manageRole.id" id="id" />
			
			<lz:block lz:if="{{edittype=='insert'||edittype=='update'||edittype=='any'}}">
				<button class="button" type="submit">
					&nbsp;<img align="absmiddle" width="20" src="/admin/images/icons/Badge-tick.png"/>
					保存&nbsp;&nbsp;</button>
				<button title="不保存数据,关闭窗口,不刷新原列表" class="button" onclick="$.closeModalDialog();" type="button">
					&nbsp;<img align="absmiddle" width="20" src="/admin/images/icons/Badge-multiply.png"/>
					关闭&nbsp;&nbsp;</button>
			</lz:block>
			
			<lz:block lz:if="{{edittype=='detail'}}">
						
						<button lz:if="{{canExp[0]==true}}" type="button" class="button" onclick='window.location.href="/admin/business/managerole.edit.html?id={{manageRole.id}}&edittype=limited"'>
							修改权限
						</button>
						
				<button lz:if="{{canEdit}}" type="button" class="button" onclick='window.location.href="/admin/business/managerole.edit.html?edittype=update&id={{manageRole.id}}"'>
					&nbsp;<img align="absmiddle" width="20" src="/admin/images/icons/Badge-tick.png"/>
					修改&nbsp;&nbsp;</button>
				<button title="不保存数据,关闭窗口,不刷新原列表" class="button" onclick="$.closeModalDialog();" type="button">
					&nbsp;<img align="absmiddle" width="20" src="/admin/images/icons/Badge-multiply.png"/>
					关闭&nbsp;&nbsp;</button>
			</lz:block>
					
			</center>
			<br/>

		</div>
	</div>
	<div class="foot"></div>		
</form>
	
{{lz.set("form_limited_test",true)}}
<form lz:if="{{form_limited_test && edittype=='limited'}}" class="form editform" ref="ManageRole" id="manageroleForm" name="manageroleForm" target="jsoniframe" action="managerole.{{edittype}}.do" method="post">
	<div class="head"></div>
	<div class="body">
		<div class="content">
			<div lz:if="{{edittype!='detail'}}" class="prompt">
				温馨提示：请仔细填写账号分组相关信息，<span class="extrude">"*" 为必填选项。</span>
			</div>
			<br/>
			<lz:block lz:if="{{message}}">
			<br/>
			<center>
				<font color="red"><h4>{{message}}</h4></font>
			</center>
			<br/>
			</lz:block>
			
			<input type="hidden" value="{{complete}}" name="complete" id="complete" />
			<input type="hidden" value="{{ids}}" name="ids" id="ids" />		
			<input type="hidden" value="{{edittype}}" name="edittype" id="edittype" />
			<input type="hidden" value="{{method}}" name="method" id="method" />
			<textarea name="PARAMS" id="PARAMS" style="display:none">{{PARAMS}}</textarea>
	{{lz.set("name_editable",true)}}
	{{lz.set("name_readonly",false)}}
	
	{{before$name}}
	<dl lz:if="{{name_editable||name_readonly}}" class="name  " major  ref="name">
		<dt>组 名 称:</dt>
		<dd lz:if="{{name_editable}}" input="label">
			<lz:block lz:if="{{manageRole$name}}">
				{{manageRole$name}}
			</lz:block>
			<lz:block lz:if="{{!manageRole$name}}">
			<input type="hidden" value="{{lz.htm(manageRole.name)}}" name="manageRole.name" id="name" />
			{{lz.html(manageRole.name$||manageRole.name)}}
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{name_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="name">{{manageRole.name}}</textarea>
		 		<span>
		 	
			 {{lz.html(manageRole.name$||manageRole.name)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$name}}
	{{lz.set("limits_editable",true)}}
	{{lz.set("limits_readonly",false)}}
	
	{{before$limits}}
	<dl lz:if="{{limits_editable||limits_readonly}}" class="limits   wider" major  ref="limits">
		<dt>权限配置:</dt>
		<dd lz:if="{{limits_editable}}" input="checkbox">
			<lz:block lz:if="{{manageRole$limits}}">
				{{manageRole$limits}}
			</lz:block>
			<lz:block lz:if="{{!manageRole$limits}}">
			 		<div class='wide input'>
			 			<label style='display: inline-block;' lz:for="{{limits$items}}"><input type="checkbox" value="{{item.key}}" name="manageRole.limits" id="limits" checked='{{lz.idin(manageRole.limits,item.key)?"checked":""}}'/>{{item.value}}&nbsp;&nbsp;&nbsp;</label>
			 		</div>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请选择账号分组的权限配置</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{limits_readonly}}">
		 	<div class="state-input wide">
		 		<textarea class=""  style="display:none;" id="limits">{{manageRole.limits}}</textarea>
		 		<span>
		 	
			 {{lz.html(manageRole.limits$||manageRole.limits)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$limits}}
			
			<div class="line"></div>
			<center class="buttons">
				<input type="hidden" value="{{manageRole.id}}" name="manageRole.id" id="id" />
				<button title="保存数据,关闭窗口,刷新原列表" class="button" type="submit" name="submiter" value="完成">
					&nbsp;<img align="absmiddle" height="20" src="/manage/images/icons/Badge-tick.png"/>
					完成&nbsp;&nbsp;</button>
				<button title="不保存数据,关闭窗口,不刷新原列表" class="button" onclick="$.closeModalDialog();" type="button">
					&nbsp;<img align="absmiddle" width="20" src="/manage/images/icons/Badge-multiply.png"/>
					关闭窗口&nbsp;&nbsp;</button>
			</center>
			<br/>
			
		</div>	
	</div>
	<div class="foot"></div>		
</form>
	


 


<!------------------------VIEW_HTML_BOTTOM------------------------>
<!------------------------VIEW_HTML_BOTTOM------------------------>


</body>

<!------------------------VIEW_HTML_FOOTER------------------------>
<!------------------------VIEW_HTML_FOOTER------------------------>
<script>

</script>
</html>